package com.xiaochong.bitong.api.userclient;

import com.alibaba.fastjson.JSONObject;
import com.xc.logclient.utils.LogTrace;

import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * @author daizhiqng
 * @date 2018-01-02 16:18 Created
 * @updateDate zhengchengshan
 */
public class JsonView {
    private String code;
    private String msg;
    private Object data;
    private String traceId;

    public String getTraceId() {
        return traceId;
    }

    public void setTraceId(String traceId) {
        try{
            this.traceId = LogTrace.getTrace().getTraceId();
        }catch (Exception e){
            this.traceId = traceId;
        }

    }



    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }


    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
